import ToolActionApi from "@/tool/http/tool-action.js";

let deviceAction = ToolActionApi.init("things_device");

const rule = {
  queryParams: [],
  metaConfig: {},
};

export default async function () {
  rule.metaConfig.device_code = {
    dictList: await deviceAction.dict("name", "code"),
  };
  return rule;
}
